<div class="pagenav">
	<a>系统设置</a> 
	<span class="pagenav-separator">/</span> 
	<a>登录日志</a>
</div>
<div class="layui-card">
	<div class="layui-card-body">
		<table  id="loginlog" ></table>
	</div>
</div>
<script type="text/javascript">
layui.use(["tablePage", "table", "admin"], function(){
	var admin = layui.admin;
	var table = layui.table;
	var TPage = layui.tablePage;
	var tpage = TPage.create("#loginlog", "/admin/loginLog", {
		cols:[[
			{field:'username',title:"用户名"},
			{field:'ip_location',title:"位置"},
			{title:"登录时间", templet : function(d){
				return admin.utils.formatDateTime(d.create_time);
			}},
		]]
	});
	tpage.load();
	
	window.onRefresh = function(){
		tpage.load();
	}
	

	
})


</script>